﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormAuditList.aspx.cs"
    Inherits="BySoft.Web.Site.SysManage.FormAuditList" MasterPageFile="~/MastePage/SubEmptyMaster.Master" %>

<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="cphHeadContent" runat="server" ContentPlaceHolderID="HeadPlace">
	<script language="javascript" type="text/javascript">
        
    </script>
</asp:Content>
<asp:Content ContentPlaceHolderID="EmptyMasteCPH" runat="server" ID="cphContent">
    <h1 class="tit">
        系统管理 >> 表单审核管理</h1>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
			<%--查询条件--%>
			<div class="searchTable">
				<table cellpadding="0" cellspacing="0">
					<tr>
    <th class="left2">
        审核单据：
    </th>
    <td class="right2">
        <asp:TextBox CssClass="fullWidth" ID="txtModuleID" runat="server" ></asp:TextBox>
    </td>
    <th class="left2">
        是否审核：
    </th>
    <td class="right2">
        <asp:DropDownList CssClass="fullHeight" ID="ddlIsCheck" runat="server">
            <asp:ListItem Text="请选择..." Value=""></asp:ListItem>
            <asp:ListItem Text="是" Value="1"></asp:ListItem>
            <asp:ListItem Text="否" Value="0"></asp:ListItem>
        </asp:DropDownList>
    </td>
</tr>
				</table>
				<div class="btnStylef">
					<label class="btnStyleb png_bg">
						<asp:Button Text="查询" runat="server" ID="btnQuery" OnClick="btnQuery_Click" />
					</label>
					<label class="btnStylec png_bg">
						<input type="button" runat="server" id="btnAdd" value="新增" onclick="window.location='FormAuditAdd.aspx'"
							validationgroup="gSubmit" /></label>
				</div>
			</div>

            <%--列表--%>
            <div class="tableStyle">
                <asp:SGridView runat="server" ID="grdResult" Width="100%" ShowActionToolBar="false"
                    AutoGenerateColumns="false" AllowCascade="false" OnRowDataBound="grdResult_RowDataBound"
                    OnRowCommand="grdResult_RowCommand">
                    <Columns>
                        <asp:TemplateField>
    <HeaderTemplate>
        审核单据
    </HeaderTemplate>
    <ItemTemplate>
        <asp:Label ID="lblModuleName" runat="server" Text='<%#Eval("ModuleName") %>'></asp:Label>
    </ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
    <HeaderTemplate>
        是否审核
    </HeaderTemplate>
    <ItemTemplate>
        <asp:Label ID="lblIsCheckName" runat="server" Text='<%#Eval("IsCheckName") %>'></asp:Label>
    </ItemTemplate>
</asp:TemplateField>
						<asp:TemplateField Visible="false">
                            <HeaderTemplate>
                                操作</HeaderTemplate>
                            <HeaderStyle Width="35px" />
                            <ItemTemplate>
                                <asp:ImageButton CommandName="checkdata" CommandArgument='<%#Eval("FormAuditID") %>'
                                    ImageUrl="~/App_Themes/Common_CSS/images/check.gif" runat="server" ID="ibtncheck" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                查看</HeaderTemplate>
                            <HeaderStyle Width="35px" />
                            <ItemTemplate>
                                <asp:ImageButton CommandName="viewdata" CommandArgument='<%#Eval("FormAuditID") %>'
                                    ImageUrl="../App_Themes/Common_CSS/images/GridDetail.gif" runat="server" ID="ibtnView" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderStyle Width="35px" />
                            <HeaderTemplate>
                                编辑</HeaderTemplate>
                            <ItemTemplate>
                                <asp:ImageButton CommandName="edi" CommandArgument='<%#Eval("FormAuditID") %>' ImageUrl="../App_Themes/Common_CSS/images/GridEdit.gif"
                                    runat="server" ID="ibtnEdi" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderStyle Width="35px" />
                            <HeaderTemplate>
                                删除</HeaderTemplate>
                            <ItemTemplate>
                                <asp:ImageButton ImageUrl="../App_Themes/Common_CSS/images/delete_small.gif" runat="server"
                                    ID="ibtnDel" />
                                <asp:Button ID="btnDel" runat="server" CssClass="Hidden" CommandArgument='<%#Eval("FormAuditID") %>'
                                    CommandName="del" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:SGridView>
                <div style="padding-top: 5px" align="right">
                    <cc1:PagingControl ID="pcData" runat="server" OnPageIndexClick="pcData_PageIndexClick" />
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>


